/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.product;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购产品图片Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopProductImages extends DataEntity<HkShopProductImages> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProduct product;		// 商品id
	private String ismain;		// 是否主图
	private String imgSrc;		// 图片路径
	
	public HkShopProductImages() {
		super();
	}

	public HkShopProductImages(String id){
		super(id);
	}

	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
	@Length(min=0, max=1, message="是否主图长度必须介于 0 和 1 之间")
	public String getIsmain() {
		return ismain;
	}

	public void setIsmain(String ismain) {
		this.ismain = ismain;
	}
	
	@Length(min=0, max=200, message="图片路径长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
}